import java.util.LinkedList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-04-19
 * Time: 16:47
 */
public class Book {
    public static void main(String[] args) {
        LinkedList<String> listBook = new LinkedList<>();
        listBook.add("java程序设计教程（第二版）");
        listBook.add("python 网络爬虫技术案例教程");
        listBook.add("城市轨道交通电动列车驾驶");
        listBook.add("客舱服务");
        listBook.add("c语言程序设计");
        System.out.println("所有图书");
        for (int i = 0; i < listBook.size(); i++) {
            System.out.println(listBook.get(i));
        }
        System.out.println("第一本图书"+" "+listBook.getFirst());
        System.out.println("最后一本图书"+" "+listBook.getLast());
    }
}
